var config = require("core/config");
var host = config.host;
var baseUrl = host + "/mall";
var productUrl = baseUrl + "/product";
var cartUrl = baseUrl + "/cart";
var orderUrl = baseUrl + "/order";
var suppilerUrl = baseUrl + "/supplier";
var categoryUrl = baseUrl + "/category";
var subjectUrl = baseUrl + "/subject";
var shopUrl = baseUrl + "/shop";
var shopCategoryUrl = baseUrl + "/shop/category";
var productSpecUrl = baseUrl + "/product/spec";
module.exports.url = {
	product : {
		doAdd : productUrl + "/doAdd",//添加商品
		doUpdate : productUrl + "/doUpdate",//修改商品
		index : productUrl + "/index",
		detail : productUrl + "/detail",
		search : productUrl + "/searchProduct",
		specList : productUrl + "/spec/list",
		resume : productUrl + "/getProductResume",
		categoryProduct : productUrl + "/getProductMap",
		queryPageBySubject:productUrl + "/queryPageBySubject",
		listOnShelfProducts4MyShop: productUrl + "/listOnShelfProducts4MyShop", //我的店铺--产商品列表【上架的】
		listOffShelfProducts4MyShop: productUrl + "/listOffShelfProducts4MyShop", //我的店铺--产商品列表【下架的】
		offShelf: productUrl + "/offShelf", //下架一个商品
		onShelf: productUrl + "/onShelf", //上架一个商品
		detail4edit: productUrl + "/detail4edit", //修改前加载商品信息
		queryPageBySubject:productUrl + "/queryPageBySubject",
		getProductBySpecId:productUrl + "/getProductBySpecId",
		searchPro : productUrl + "/search",
		detail4editSpec: productSpecUrl + "/detail4editSpec", //修改前加载商品规格信息
		deleteSpec : productSpecUrl+"/deleteSpec",
		getProductSpecLst : productSpecUrl + "/list",
		getQqStore : productUrl + "/getQqStore"
	},
	cart :  {
		index : cartUrl + "/index",
		indexByShop : cartUrl + "/indexByShop",
		doAdd : cartUrl + "/doAdd",
		doDelete : cartUrl + "/doDelete",
		checkout : cartUrl + "/checkout",
		doUpdateQuantity : cartUrl + "/doUpdateQuantity",
		doUpdate : cartUrl + "/doUpdate",
		totalQuantity : cartUrl + "/totalQuantity"
	},
	order :{
		doAdd : orderUrl + "/doAdd",
		doCancel : orderUrl + "/doCancel",
		getDisParam : orderUrl + "/getDisParam"
	},
	supplier :{
		list : suppilerUrl + "/list",
		detail : suppilerUrl + "/detail",
		showList : suppilerUrl + "/showList",
		getSupplierByUser : suppilerUrl + "/user/getSupplierByUser"
	},
	category:{
		firstLevel : categoryUrl + "/firstLevel",
		childrenList : categoryUrl + "/childrenList"
	},
	shop:{
		doAdd : shopUrl + "/doAdd",
		hasCreate : shopUrl + "/hasCreate",
		myShop : shopUrl + "/myShop",
		detail : shopUrl + "/detail",
		updateName : shopUrl + "/updateName",
		updateLogo : shopUrl + "/updateLogo",
		updateResume : shopUrl + "/updateResume",
		updatePhone : shopUrl + "/updatePhone",
		updatePayType : shopUrl + "/updatePayType",
		updateSendDeliveryType : shopUrl + "/updateSendDeliveryType",
		updateAddress : shopUrl + "/updateAddress",//修改店铺地址（取社区x,y,拼接社区地址和门牌号）
		updateAddressV1 : shopUrl + "/updateAddressV1", //修改店铺地址（定位x,y,手动修改地址）
		updateCategoryId : shopUrl + "/updateCategoryId",
		updateLicensePic : shopUrl + "/updateLicensePic",
		updateBusTime : shopUrl + "/updateBusTime",
		updateDeliveryValue : shopUrl + "/updateDeliveryValue",
		updateStatus : shopUrl + "/updateStatus",
		discover : shopUrl + "/discover",
		discoverList : shopUrl + "/discoverList",
		neiShopPage : shopUrl + "/neiShopPage",
		comShopPage : shopUrl + "/comShopPage",
		buyDetail : shopUrl + "/buyDetail",
		buyDetailPro : shopUrl + "/buyDetailPro",
		detailByShopId : shopUrl + "/detailByShopId",
		herShopId : shopUrl + "/herShopId", //查询她的店铺id--用于跳转到她的店铺详情
		search : shopUrl + "/search",
		beforeCreate : shopUrl + "/beforeCreate",
		updateFreight : shopUrl + "/updateFreight",
		updateQuanPayRate : shopUrl + "/updateQuanPayRate",
		getQshop : shopUrl + "/getQshop",
		updateExtCommunity : shopUrl + "/updateExtCommunity",
	},
	shopCategory:{
		childrenList : shopCategoryUrl + "/childrenList",
		childrenListForPage : shopCategoryUrl + "/childrenListForPage",
		isLast : shopCategoryUrl + "/isLast"
	}
};